package com.elinshaw.pattern.observer;

/**
 * 事件回调响应
 *
 * @author elinShaw
 */
public interface TaskLifeCycle<T> {

    void onStart(Thread thread);

    void onRunning(Thread thread);

    void onFinish(Thread thread, T result);

    void onError(Thread thread, Exception e);


}
